﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Security.Principal;

namespace BattleThis.Core
{
	/// <summary>
	/// Represent the Player Identity of BattleThis.
	/// </summary>
	public class PlayerIdentity : IIdentity
	{
		#region Variablen
		private string m_Name = string.Empty;
		#endregion

		#region Properties

		#endregion

		#region Methoden
		/// <summary>
		/// Initializes a new instance of the <see cref="PlayerIdentity"/> class.
		/// </summary>
		/// <param name="name">The name.</param>
		public PlayerIdentity( string name )
		{
			if( name == null ) throw new ArgumentNullException( "name" );

			m_Name = name;
		}

		#region IIdentity Member

		public string AuthenticationType
		{
			get { throw new NotImplementedException(); }
		}

		public bool IsAuthenticated
		{
			get { return true; }
		}

		public string Name
		{
			get { return m_Name; }
		}

		#endregion

		#endregion

	}
}